﻿@model WmWebSystem.Models.UserAccount

@{
    ViewBag.Title = "账户信息";
    Layout = "~/Views/Shared/_Layout_manage.cshtml";
}

<div class="contentcontainer">
<div class="headings altheading">
    <h2>用户账户信息</h2>
</div>
<div class="contentbox">
    <table width="100%">
        <thead>
            <tr>
                <th>用户名</th>
                <th>邮 箱</th>
                <th>联系方式</th>
                <th>状态</th>
                <th>注册时间</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>@Html.DisplayFor(model => model.Name)</td>
                <td>@Html.DisplayFor(model => model.Email)</td>
                <td>@Html.DisplayFor(model => model.Telephone)</td>
                <td>@Html.DisplayFor(model => model.Status)</td>
                <td>@Html.DisplayFor(model => model.AddTime)</td>
            </tr>
            <tr class="alt">
                <th>联系地址</th>
                <td colspan="4">@Html.DisplayFor(model => model.Address)</td>
            </tr>
            <tr>
                <td>
                   @{
                       string logo = "";
                       if(ViewBag.Logo!=null)
                       {
                           logo = ViewBag.Logo;
                       }
                       else
                       {
                           logo="~\\Content\\UserAccount\\wm.png";
                       }
                    }
                    <img src="@Url.Content(logo)" width="45" />
                </td>
                <td colspan="4">
                    <a href="@Url.Action("ChangeAccountInf","Account")" title="修改信息">修改信息</a>
                    <a href="@Url.Action("ChangePassword", "Account")" title="修改密码">修改密码</a>
                </td>
            </tr>
        </tbody>
    </table>
    <div style="clear: both;"></div>
</div>      
</div>

